package com.antler.luajavalibrary.utils;

public class PathUtils {
    private PathUtils() {
        throw new AssertionError();
    }

    public static String getFileExtention(String fileName) {
        if (fileName == null) {
            return null;
        }

        int pos = fileName.lastIndexOf('.');
        if (pos == -1) {
            return null;
        }

        return fileName.substring(pos);
    }
}
